package com.automannn.practice.mybatis.dao;

import com.automannn.practice.mybatis.entity.PersonEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author chenkh
 * @time 2021/10/25 10:06
 */
public interface PersonDao {
    List<PersonEntity> selectList();

    PersonEntity selectByName(PersonEntity personEntity);

    @Select(value = "select * from person")
    List<PersonEntity> queryAll();

    List<PersonEntity> selectBySingleParam(String pname);
}
